package com.zl.smartmall.library.po;

import android.os.Parcel;
import android.os.Parcelable;

public class GZCommunity implements Parcelable{
	/*
	 * "cmid": "2", # 小区ID，该ID在很多地方需要用到 "province": "", "city": "", "name":
	 * "万科拉菲庄园" # 小区名称
	 */
	private int cmid;
	private String province;
	private String city;
	private String name;
	private int status;
	
	public GZCommunity(){
		
	}

	public GZCommunity(Parcel source) {
		cmid = source.readInt();
		province = source.readString();
		city = source.readString();
		name = source.readString();
		status = source.readInt();
	}

	public int getCmid() {
		return cmid;
	}

	public void setCmid(int cmid) {
		this.cmid = cmid;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(cmid);
		dest.writeString(province);
		dest.writeString(city);
		dest.writeString(name);
		dest.writeInt(status);
	}
	
	
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}



	public static final Parcelable.Creator<GZCommunity> CREATOR = new Creator<GZCommunity>() {
		
		@Override
		public GZCommunity[] newArray(int size) {
			return new GZCommunity[size];
		}
		
		@Override
		public GZCommunity createFromParcel(Parcel source) {
			
			return new GZCommunity(source);
		}
	};

}
